﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Runtime.InteropServices;
using System.Peppers.Win32;

namespace System.Peppers.ShellExtensions
{
    /// <summary>
    /// Creates a seperator in the ContextMenu
    /// </summary>
    public sealed class ContextMenuSeperator : ContextMenuItemBase
    {
        internal override MENUITEMINFO BuildStruct(ref uint id, ContextMenuBase shell)
        {
            MENUITEMINFO info = base.BuildStruct(ref id, shell);
            info.fMask = (uint)MIIM.TYPE;
            info.fType = (uint)MF.SEPARATOR;
            return info;
        }
    }
}
